package com.athena.framework.aop;

import com.athena.framework.annotation.Aop;
import com.athena.framework.proxy.ProxyInterface;

import java.lang.reflect.Method;

/**
 * @author likun
 * 2018/6/25 15:08
 **/
@Aop(className = "com.athena.*.bean.*Service",methodName = "print")
public class AopHandle implements ProxyInterface {
    @Override
    public void before(Object obj, Method method, Object[] args) {
        System.out.println("before");
    }

    @Override
    public void after(Object obj, Method method, Object[] args, Object returnValue) {
        System.out.println("after");
    }
}
